<%@page import="entities.AdsenseAdv"%>
<%@page import="java.util.TreeMap"%>
<%@page import="helpers.UrlHelper"%>

<%
TreeMap<String, String> check = (TreeMap<String, String>) request.getAttribute("check");
AdsenseAdv ads = (AdsenseAdv) request.getAttribute("ads");
String name = (String) request.getAttribute("name");
%>
<jsp:include page="/admin/layouts/header.jsp" />
<script type="text/javascript">
<!--
var name = "<%=name%>";
jQuery(document).ready(function () {
	jQuery(".maintabmenu li a[href*="+name+"]").parent().addClass("current");
	
	//Remove hide content content
	jQuery(".one_half.last ." + name).removeClass("hide");
	
	//set menu
	jQuery(".leftmenu ul li").removeClass("current");
	jQuery(".leftmenu ul li a.adv").parent().addClass("current");
	
	//Display view info
	var viewInfo = [];
	if ( jQuery.inArray(name, viewInfo) > -1 ) {
		jQuery(".view-info").removeClass("hide");
	}
});
//-->
</script>

		<div class="maincontent noright">
        	<div class="maincontentinner">
                <ul class="maintabmenu multipletabmenu">
                	<li><a href="/admin/adv/160x600">Size 160x600</a></li>
                	<li><a href="/admin/adv/200x200">Size 200x200</a></li>
                	<li><a href="/admin/adv/234x60">Size 234x60</a></li>
                	<li><a href="/admin/adv/250x250">Size 250x250</a></li>
                	<li><a href="/admin/adv/300x250">Size 300x250</a></li>
                	<li><a href="/admin/adv/300x600">Size 300x600</a></li>
                	<li><a href="/admin/adv/336x280">Size 336x280</a></li>
                	<li><a href="/admin/adv/468x15">Size 468x15</a></li>
                	<li><a href="/admin/adv/468x60">Size 468x60</a></li>
                	<li><a href="/admin/adv/728x15">Size 728x15</a></li>
                	<li><a href="/admin/adv/728x90">Size 728x90</a></li>
                	
                </ul><!--maintabmenu-->
                
                <div class="content">
					<jsp:include page="/admin/elements/message_box.jsp" />

                    <div class="contenttitle">
                    	<h2 class="form"><span>Size <%=name %></span></h2>
                    </div><!--contenttitle-->
                    
                    <br><br>
            
                    <form method="post" action="" class="stdform" id="edit_config_form">
                    	<div class="stdform2">
	                        <p>
	                        	<label>Name</label>
	                            <span class="field">
	                            	<input type="text" class="mediuminput" name="name" id="s_name" value="<%=ads.getName() %>">
	                            	<% if (check.get("name") != null) { %>
										<label for="s_name" generated="true" class="error"><%=check.get("name") %></label>
									<% } %>
	                            </span>
	                        </p>
	                        
	                        <p>
	                        	<label>Content</label>
	                            <span class="field">
	                            	<textarea id="s_content" class="longinput" name="content"  rows="5" cols="80"><%=ads.getContent() %></textarea>
	                            	<% if (check.get("content") != null) { %>
										<label for="s_content" generated="true" class="error"><%=check.get("content") %></label>
									<% } %>
	                            </span>
	                        </p>
	                        
                        </div>
                        
                        <br clear="all">
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Submit Button</button>
                            <input type="reset" value="Reset Button" class="reset radius2">
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    
                </div><!--content-->
                
            </div><!--maincontentinner-->
            
            <jsp:include page="/admin/elements/copyright.jsp" />
            
        </div>

<jsp:include page="/admin/layouts/footer.jsp" />